import baseModel from './baseModel';

class dtuModel extends baseModel {

    constructor(options) {
            super(options)
        }
        // projectId, currentPage, pageSize 
    queryList(data) {
        let url = ` /api/deviceTrans/query`;
        return this.$get(url, data)
    }

    queryByUser(data) {
        let url = ` /api/deviceTrans/queryByUser`;
        return this.$post(url, data)
    }

    queryDelete(id) {
        let url = ` /api/deviceTrans/delete/${id} `;
        return this.$get(url)
    }

    deviceTransAdd(data) {
        let url = ` /api/deviceTrans/insert`;
        return this.$post(url, data)
    }

    deviceTransUpdate(data) {
        let url = ` /api/deviceTrans/update`;
        return this.$post(url, data)
    }


}

export default dtuModel;